﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace diploma.test.core
{
    internal class StrategyFactory
    {
        private StrategyFactory() { } 
  
        static StrategyFactory instance = null; 
        internal static StrategyFactory Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new StrategyFactory();
                }
                return instance;
            }
        }

        internal AbstractTestStrategy CreateStrategy(TestStrategy st/*, PropertyTable propertyTable*/)
        {
            AbstractTestStrategy strategy = null;
            switch (st)
            {
                case TestStrategy.Horizontal :
                    //strategy = new HorizontalTestStrategy(/*propertyTable*/);
                    break;
                case TestStrategy.Hybrid :
                    //strategy =  new HybridTestStrategy(/*propertyTable*/);
                    break;
                case TestStrategy.Vertical:
                    strategy =  new VerticalTestStrategy(/*propertyTable*/);
                    break;
                default: break;
            }
            return strategy;
        }
    }
}
